package com.gitee.wsl.prism4j

class TextImpl(private val literal: String) : Prism4j.Text {
    override fun textLength(): Int {
        return literal.length
    }

    override val isSyntax: Boolean
        get() = false

    override fun literal(): String {
        return literal
    }

    override fun toString(): String {
        return "TextImpl{" +
                "literal='" + literal + '\'' +
                '}'
    }
}
